<form action="" class="form-horizontal" role="form">
  <volist name="dynaForm.config" id="vo">
  <div class="form-group">
    <label class="col-sm-2 control-label">{$vo.varTitle}</label>
    <div class="col-sm-6">
      <if condition="$vo['varType'] eq 'textarea'">
      <textarea class="form-control" name="{$vo.varName}" placeholder="" rows="6">{$vo.varValue}</textarea>
      <else/>
      <input class="form-control" type="{$vo.varType}" name="{$vo.varName}" readonly="readonly" value="{$vo.varValue}">
      </if>
    </div>
  </div>
  </volist>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-8">
      <input type="hidden" name="id" value="{$dynaFormData.id}">
      <button type="submit" class="btn btn-primary submit" data-loading-txt="提交中，请稍后……" data-ajax-url="__CONTROLLER__/save">保存更改</button>
    </div>
  </div>
</form>